public class Hello2 {

    /**
     * 类型转换
     * @param args
     */
    public static void main(String[] args) {
        //强制转换
        int a = 123;
        byte b = (byte) a;
        System.out.println(b);

        //自动转换
        int a1 = 123;
        long b1 = a1;
        System.out.println(b1);
    }

}
